#include <testngpp/internal/TestCase.h>
#include <testngpp/internal/TestFixtureDesc.h>
#include <testngpp/internal/TestSuiteDesc.h>
#include <testngpp/internal/DataDriven.h>
#include "TestRectangle.h"

static struct TESTCASE_TestRectangle_test_11
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestRectangle_test_11()
      : TESTNGPP_NS::TestCase
        ( "Rectangle Area should be : 9.511*5.515=52.40"
        , "Rectangle"
        , "TestRectangle"
        , 0
        , "TestRectangle.h"
        , 11)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestRectangle();
      }
      else
      {
         belongedFixture = dynamic_cast<TestRectangle*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_11()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestRectangle* belongedFixture;
} testcase_instance_TestRectangle_test_11 ;



static struct TESTCASE_TestRectangle_test_19
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestRectangle_test_19()
      : TESTNGPP_NS::TestCase
        ( "ilegal rectangle length = 101"
        , "Rectangle"
        , "TestRectangle"
        , 0
        , "TestRectangle.h"
        , 19)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestRectangle();
      }
      else
      {
         belongedFixture = dynamic_cast<TestRectangle*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_19()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestRectangle* belongedFixture;
} testcase_instance_TestRectangle_test_19 ;



static struct TESTCASE_TestRectangle_test_27
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestRectangle_test_27()
      : TESTNGPP_NS::TestCase
        ( "ilegal rectangle width = 76"
        , "Rectangle"
        , "TestRectangle"
        , 0
        , "TestRectangle.h"
        , 27)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestRectangle();
      }
      else
      {
         belongedFixture = dynamic_cast<TestRectangle*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_27()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestRectangle* belongedFixture;
} testcase_instance_TestRectangle_test_27 ;



static struct TESTCASE_TestRectangle_test_35
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestRectangle_test_35()
      : TESTNGPP_NS::TestCase
        ( "Rectangle Perimeter should be: (9.511+5.515)*2=30.04"
        , "Rectangle"
        , "TestRectangle"
        , 0
        , "TestRectangle.h"
        , 35)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestRectangle();
      }
      else
      {
         belongedFixture = dynamic_cast<TestRectangle*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_35()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestRectangle* belongedFixture;
} testcase_instance_TestRectangle_test_35 ;



static struct TESTCASE_TestRectangle_test_43
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestRectangle_test_43()
      : TESTNGPP_NS::TestCase
        ( "Square Area should be : 9.511*9.511=90.44"
        , "Rectangle"
        , "TestRectangle"
        , 0
        , "TestRectangle.h"
        , 43)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestRectangle();
      }
      else
      {
         belongedFixture = dynamic_cast<TestRectangle*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_43()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestRectangle* belongedFixture;
} testcase_instance_TestRectangle_test_43 ;



static struct TESTCASE_TestRectangle_test_51
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestRectangle_test_51()
      : TESTNGPP_NS::TestCase
        ( "ilegal square line = 76"
        , "Rectangle"
        , "TestRectangle"
        , 0
        , "TestRectangle.h"
        , 51)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestRectangle();
      }
      else
      {
         belongedFixture = dynamic_cast<TestRectangle*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_51()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestRectangle* belongedFixture;
} testcase_instance_TestRectangle_test_51 ;



static struct TESTCASE_TestRectangle_test_59
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestRectangle_test_59()
      : TESTNGPP_NS::TestCase
        ( "Square Perimeter should be: 9.511*4=38.04"
        , "Rectangle"
        , "TestRectangle"
        , 0
        , "TestRectangle.h"
        , 59)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestRectangle();
      }
      else
      {
         belongedFixture = dynamic_cast<TestRectangle*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_59()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestRectangle* belongedFixture;
} testcase_instance_TestRectangle_test_59 ;



static TESTNGPP_NS::TestCase* g_TESTCASEARRAY_TestRectangle[] = {
&testcase_instance_TestRectangle_test_11,
&testcase_instance_TestRectangle_test_19,
&testcase_instance_TestRectangle_test_27,
&testcase_instance_TestRectangle_test_35,
&testcase_instance_TestRectangle_test_43,
&testcase_instance_TestRectangle_test_51,
&testcase_instance_TestRectangle_test_59,
0
};




/*static*/ TESTNGPP_NS::TestFixtureDesc test_fixture_desc_instance_TestRectangle
   ( "Rectangle"
   , "TestRectangle.h"
   , g_TESTCASEARRAY_TestRectangle
   , (sizeof(g_TESTCASEARRAY_TestRectangle)/sizeof(g_TESTCASEARRAY_TestRectangle[0])) - 1
   );



static TESTNGPP_NS::TestFixtureDesc* array_of_fixture_desc_TestRectangle[] = {
&test_fixture_desc_instance_TestRectangle,
0
};




static TESTNGPP_NS::TestSuiteDesc test_suite_desc_instance_TestRectangle
   ( "TestRectangle"
   , array_of_fixture_desc_TestRectangle
   , (sizeof(array_of_fixture_desc_TestRectangle)/sizeof(array_of_fixture_desc_TestRectangle[0])) - 1
   );



extern "C" DLL_EXPORT TESTNGPP_NS::TestSuiteDesc* ___testngpp_test_suite_desc_getter() {
   return &test_suite_desc_instance_TestRectangle;
}


